package com.cf.user.login.dao;

import com.cf.crud.mapper.BaseMapper;
import com.cf.user.login.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserInfoDao extends BaseMapper<UserInfo> {
    @Select("select * from userInfo where type=#{type}")
    List<UserInfo> selectByType(@Param("type") String type);

    @Select("select * from userInfo where phone=#{phone}")
    UserInfo selectByPhone(@Param("phone") String phone);
}
